"""
@author: tian-yan-tian-ge
@file: 2023.11.22字符串的映射.py
@time: 2023/11/22 22:37
"""
str1 = input("请输入需要映射的字符串:")
str2 = ""
for i in str1:
    if str(i).isupper():
        str2 += "1"
    elif str(i).islower():
        str2 += "0"
    else:
        str2 += str(i)
print(str2)
